/**
 * @description Vue-UI 入口文件
 */

import 'babel-polyfill'
import VueAntdUI from 'vue-antd-ui'
import './assets/scss/index.scss'
import store from '@store'
import router from '@/router'
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import { config, antdLocale } from '@/i18n/i18nProvider'

// Delelopment use fixture
// Use an easy-mock instead of an interceptor
process.env.NODE_ENV === 'development' && require('@mock/fixture')
Vue.use(VueAntdUI).use(VueI18n)
const i18n = new VueI18n(config)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: `<a-locale-provider :locale=${
    antdLocale.antdLocale
  }><router-view/></a-locale-provider >`,
  i18n
})
